package com.insigma.business.qrcode.common.util;

import org.slf4j.Logger;

public class ExceptionUtil {

    
    private ExceptionUtil() {}

    
    public static void caught(Logger logger, Throwable e, Object... objArray) {
        logger.error(LogUtil.getLogString(objArray), e);
    }

    public static void caughtWarn(Logger logger, Throwable e, Object... objArray) {
        logger.warn(LogUtil.getLogString(objArray), e);
    }
    
    public static void error(Logger logger, Object... objArray){
        logger.error(LogUtil.getLogString(objArray));
    }
}
